﻿<KCtl:BasePhoneApplicationPage xmlns:my="clr-namespace:Kiva7.Pages"
    xmlns:KCtl="clr-namespace:Kiva7.Controls"

    x:Class="Kiva7.Pages.LoansPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                               xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True" Loaded="Page_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">

        <!--Pivot Control-->
        <KCtl:OrientedPivot Title="Kiva7">

            <controls:PivotItem Header="{Binding Path=L.InRepayment, Source={StaticResource L}}">
                <my:LoansControl x:Name="ctlInRepayment" />
            </controls:PivotItem>

            <controls:PivotItem Header="{Binding Path=L.Fundraising, Source={StaticResource L}}">
                <my:LoansControl x:Name="ctlFundraising" />
            </controls:PivotItem>

            <controls:PivotItem Header="{Binding Path=L.Paid, Source={StaticResource L}}">
                <my:LoansControl x:Name="ctlPaid" />
            </controls:PivotItem>

            <controls:PivotItem Header="{Binding Path=L.Funded, Source={StaticResource L}}">
                <my:LoansControl x:Name="ctlFunded" />
            </controls:PivotItem>
            <controls:PivotItem Header="{Binding Path=L.Defaulted, Source={StaticResource L}}">
                <my:LoansControl x:Name="ctlDefaulted" />
            </controls:PivotItem>

            <controls:PivotItem Header="{Binding Path=L.Expired, Source={StaticResource L}}">
                <my:LoansControl x:Name="ctlExpired" />
            </controls:PivotItem>

            <controls:PivotItem Header="{Binding Path=L.Refunded, Source={StaticResource L}}">
                <my:LoansControl x:Name="ctlRefunded" />
            </controls:PivotItem>


        </KCtl:OrientedPivot>
    </Grid>


</KCtl:BasePhoneApplicationPage>